package com.xujl.fastlib.utils;

import android.content.Context;

import com.chenenyu.router.Router;

import androidx.fragment.app.Fragment;

/**
 * @author x
 * @Description
 */
public class RouterHelper {

    public static Fragment startFragment (String api) {
        return Router.build(api).getFragment(null);
    }

    public static void startActivity (Context context, String api) {
        Router.build(api).go(context);
    }
}
